package com.itelecom.oss.mobile.domains;

import android.os.Parcel;
import android.os.Parcelable;

public class DeviceForMobile implements Parcelable{

    private String id;

    private String location;

    private String state;

    private String model;

    private String name;

    private String description;

    public DeviceForMobile() {
    }

    public DeviceForMobile(String location, String state, String model, String name, String description) {
        this.location = location;
        this.state = state;
        this.model = model;
        this.name = name;
        this.description = description;
    }
    
    public DeviceForMobile(String id, String location, String state, String model, String name, String description) {
    	this.id = id;
        this.location = location;
        this.state = state;
        this.model = model;
        this.name = name;
        this.description = description;
    }

    public DeviceForMobile(Parcel in){
    	id=in.readString();
    	location=in.readString();
    	state=in.readString();
    	model=in.readString();
    	name=in.readString();
    	description=in.readString();
    	
    }
    
    public String toString(){
    	return new String(this.location+" "+this.model+" "+this.name);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(id);
		dest.writeString(location);
		dest.writeString(model);
		dest.writeString(name);
		dest.writeString(state);
		dest.writeString(description);
		
	}

	public static final Parcelable.Creator<DeviceForMobile>
		CREATOR=new Parcelable.Creator<DeviceForMobile>() {
		public DeviceForMobile createFromParcel(Parcel in){
			return new DeviceForMobile(in);
		}

		@Override
		public DeviceForMobile[] newArray(int size) {
			return new DeviceForMobile[size];
		}
		};
}
